#pragma once

#include <boost/shared_ptr.hpp>
#include "TimeEvent.h"
#include "CMFT.h"
#include <QTreeWidgetItem>
class TimeLineImp;
class TimeLine
{
public:
	TimeLine(void) ;
	
	void AddEvent(CMFT mft,TimeEvent e);
	~TimeLine(void) {
		delete imp;
	}
	void TimeBasedInference( QTreeWidgetItem *nxt, CMFT* cur,SYSTEMTIME startTime,SYSTEMTIME endTime);
	void clear();
	bool writeLog( QString logName );
	void fillTree( QTreeWidget *tree );
private :
	QMultiMap<TimeEvent,CMFT> events;
	TimeLineImp * imp;
};
